package com.yan.demo;

import com.yan.domain.Architect;
import com.yan.domain.Designer;
import com.yan.domain.Employee;
import com.yan.domain.Programmer;

public class OOPDemo4 {
    public static void main(String[] args) {
        Employee employee = new Employee("001" , "yft" , 20 , 20000);
        employee.getInfo();
        Programmer programmer = new Programmer("002", "qwe", 20, 20000, "java");
        programmer.getInfo();
        Designer designer = new Designer("003", "asd", 20, 30000, 10000);
        designer.getInfo();
        Architect architect = new Architect("004", "aaa", 21, 50000, 2);
        architect.getInfo();
    }
}
